package com.hamster.crmpre.service;

import com.aliyuncs.exceptions.ClientException;
import com.hamster.crmpre.pojo.PhoneUser;
import com.hamster.crmpre.pojo.Role;

/**
 * @author Tarry
 * @create 2019/12/25 10:48
 */
public interface PhoneUserService {
    PhoneUser getUserByOpenId(String openid);
    PhoneUser insertUser(PhoneUser user);

    Role queryUser(String phone);

    PhoneUser setPhone(String openId, String phone);

    void sendPhoneCode(String phone) throws ClientException;

    boolean checkPhone(String phone);

    String queryNameByPhone(String phone);
}
